package cn.bjit.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@ConfigurationProperties(prefix = "aliyun.oss")
@Configuration
@Data
public class OSSconfig {
    private String endpoint;
    private String accessKeyId;
    private String accessKeySecret;
    private String bucketname;

//把applicatioin.yml中下面的配置的值 注入到上面的属性中
//    aliyun:
//    oss:
//    endpoint: oss-cn-beijing.aliyuncs.com
//    access-key-id: LTAI5tL69XGMMVogiaFHcUVS
//    access-key-secret: T5vxBOOEySkaS7ie2sH6hWFH4ilbWM
//    bucketname: pass-user-service-img
}

